﻿using System.Collections.Generic;
using Whoot.DI.Context.Internal;

namespace Whoot.DI.Context
{
    public class Context : IContext
    {
        private DiContainer _container;
        private  List<IInstaller> _installers = new List<IInstaller>();
        
        public DiContainer Container => _container;

        public IContext ParentContext { get; }
        public IEnumerable<IInstaller> Installers => _installers;

        public void SetContainer(DiContainer container)
        {
            _container = container;
        }
    }
}